﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Data;

namespace Skyworth.CRM.DAL
{
   public abstract class SuperDataBase
    {
       private Database _dataBase;

       protected SuperDataBase()
       {
           _dataBase = DatabaseFactory.CreateDatabase();
       }
       protected SuperDataBase(string dbName)
       {
           _dataBase = DatabaseFactory.CreateDatabase(dbName);
       }

       public Database DB
       {
           get { return _dataBase; }
           set { _dataBase = value; }
       }
    }
}
